The Website Template is designed to help you create your new website as fast as possible. It contains several features out of the box so you don't have to create them yourself, including a full user sign-up, login and profile implementation, blogging system and more. All created using the new Twitter Bootstrap 3 CSS framework.
$config['base_url'] = 'http://localhost/websitetemplate/';and replace
http://localhost/websitetemplate/with your website domain name. E.g.
$config['base_url'] = 'http://example.com/';Don't forget the trailing slash!
$db['default']['username'] = 'root'; $db['default']['password'] = ''; $db['default']['database'] = 'websitetemplate';and replace the values with your own settings. E.g.
$db['default']['username'] = 'db_user'; $db['default']['password'] = 'db_user_password1'; $db['default']['database'] = 'my_database';
YOUR_APP_IDwith your Facebook App ID if you wish to enable Facebook login.
form action="http://mammothology.us7.list-manage1.com/subscribe/post?u=2b4825889c50d3df44b1d6d8e&id=9cc545791f"You must replace between the quotes with the similar looking URL for your own Mailchimp lists.
< a class="twitter-timeline" href="https://twitter.com/Mammothology" data-widget-id="356865742269988864">Tweets by @Mammothology< /a>You must replace the href with the URL to your own Twitter profile. You must create a widget in your Twitter Settings and use the data-widget-id from the resulting code in place of the data-widget-id you see in blog_sidebar.php.
var disqus_shortname = 'mammothology';You must replace 'mammothology' with the shortname you created for your Disqus account.
The Website Template is designed as a starting point for your own web development therefore it's expected you will want to customize various aspects.
The user login system is a simple email & password combination. The password has basic SHA1 + salt encryption which you may want to improve upon if you are building a large site. The login system also supports a password reset function which will email the user with a reset link they can use to reset their password. Again, if you require a more secure system it is recommended you improve the reset feature to your liking.
You can send customized emails using the templates in /views/emails. Currently there is only one defined for the reset password email which you will want to customize to include your own website name. You will notice the templates are build like simple PHP/HTML webpages with the dynamic values injected using Codeigniters parser library. This code is in /models/util_model.php
The contact form will send an email to the address you pass as a parameter. The code for this is in /controllers/about/send_message. You will need to update this to your own email address.
The user profile section is included as an example of how you might wish to create user profiles. It is fully working with the user_profiles table in the database SQL provided. If you wish to add/remove user profile fields it is suggested you follow the same format as the ones provided to make it easier to do. Simply add or remove the column from the database table, update the user_model.php and the profile code in profile.php, edit_profile_page.php, profile_page.php and the corresponding Javascript files
The blog included is a paginated flow of posts with a place for admins to add/edit posts. If you want to enable editing and creation of posts you must set the 'isAdmin' flag in the database user table to 1. The blog home page will show up to 500 character summaries of each post and the titles are clickable to view the entire post on it's own page.
The blog sidebar contains an email signup for a Mailchimp list which you should edit to point to your own Mailchimp list. It also contains a Twitter widget which you should also replace with your own settings by first creating a new widget on Twitter.com and following the instructions.
On individual posts you will also see comments powered by Disqus. Simply change the shortcode from 'mammothology' to your own account shortcode and the comments will be setup for you.
All you need to do to add new items to the auto-generated FAQ is to add new list elements to the "faq-list" using the same format as the example items and that's it. The searching and generating of numbers is automatic.
Please bear in mind the Website Template does require some basic coding knowledge. Just enough to change a couple of values in 4 files and run a SQL file on your MySQL database. Don't worry though, this is all thoroughly documented!
You can get support in our support forums at http://mammothology.com/forums